import request from '@/utils/request-unimall'
const uploadPath =  /* process.env.HOST + */ '/web/upload/admin'
const uploadLocalPath = /* process.env.HOST + */ '/web/upload/local'
export { uploadPath, uploadLocalPath }

export function createStorage(data) {
  return request({
    url: uploadPath,
    method: 'post',
    data
  })
}
